#pragma once

#include <linux/types.h>

extern void *initial_boot_params;
extern int dt_root_size_cells;
extern int dt_root_addr_cells;

extern const void *of_get_flat_dt_prop(unsigned long node, const char *name,
				       int *size);

bool of_fdt_device_is_available(const void *blob, unsigned long node);
u64 dt_mem_next_cell(int s, const __be32 **cellp);
u64 of_read_number(const __be32 *cell, int size);
